/**
 * 
 */

package com.wutianyi.nio.interfaces;

import java.io.IOException;
import java.nio.channels.SelectableChannel;

/**
 * @author wutianyi
 * 
 */
public interface Dispatcher {

	void dispatch() throws IOException;

	void shutdown();

	ChannelFacade registerChannel(SelectableChannel channel, InputHandler handler) throws IOException;

	void unregisterChannel(ChannelFacade key);
}
